home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Scrolling Content
- Sent: 4/2/96 5:35 PM
- Received: 4/2/96 4:51 PM
- From: Laurent Delamare, laurentd@apple.com
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >I need to programmaticly scroll my content view to display another part of
- >my content, properly updating the scroll bars.
- >
- >What's the best way to do this?
- >
-
- Try this:
-
- // create a point with the vertical or horizontal scrolling distance
- // (one of the 2 must be null, we scroll in 1 direction at a time)
-
- FW_CPoint delta(dx, dy);
-
- // Tell your scrollbar-scroller object to scroll the content view
-
- scroller->ScrollRelative(ev, delta);
-
- // Adjust your scrollbars
-
- scroller->UpdateScrollParameters(ev, false);
-
-
-
- ______________________________________________________________________
- Laurent Delamare laurentd@apple.com
- ODF Team http://www.devtools.apple.com/odf/
- Apple Computer, Inc. http://www.opendoc.apple.com/
-
-